From feacee96e736f2c4f3fed68472167f465ae66dcf Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Wed, 7 Jan 2009 15:11:11 +0100 Subject: [PATCH] osm.c: ikey is returned as int Don't cast to char and back without a reason. --- debian/patches/osm-char-int-cast-bug-fix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 debian/patches/osm-char-int-cast-bug-fix diff --git a/debian/patches/osm-char-int-cast-bug-fix b/debian/patches/osm-char-int-cast-bug-fix new file mode 100644 index 000000000..9191555fa --- /dev/null +++ b/debian/patches/osm-char-int-cast-bug-fix @@ -0,0 +1,24 @@ +osm.c: ikey is returned as int + +Don't cast to char and back without a reason. + +--- a/osm.c ++++ b/osm.c +@@ -443,7 +443,7 @@ osm_features_init(void) + } + + +-static char ++static int + osm_feature_ikey(const char *key) + { + int result; +@@ -535,7 +535,7 @@ osm_node_tag(const char *args, const cha + const char **avp = &attrv[0]; + const char *key = "", *value = ""; + char *str; +- char ikey; ++ int ikey; + + while (*avp) { + if (strcmp(avp[0], "k") == 0) -- 2.30.2